﻿#region Using Statements
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
#endregion

namespace StarFoxLauncher
{
    /// <summary>
    /// Represents a possible display resolution configuration.
    /// </summary>
    public struct DisplayResolution
    {
        /// <summary>
        /// Gets the width of the screen, in pixels.
        /// </summary>
        public int Width
        {
            get;
            private set;
        }

        /// <summary>
        /// Gets the height of the screen, in pixels.
        /// </summary>
        public int Height
        {
            get;
            private set;
        }

        /// <summary>
        /// Gets a selectable resolution value to be shown in its corresponding ComboBox.
        /// </summary>
        public string Resolution
        {
            get
            {
                string str = Width.ToString() + " x " + Height.ToString();
                return str;
            }
        }

        /// <summary>
        /// Stores a new possible display resolution configuration for the game. 
        /// </summary>
        /// <param name="width">Width of the screen, in pixels.</param>
        /// <param name="height">Height of the screen, in pixels.</param>
        public DisplayResolution(int width, int height) : this()
        {
            Width = width;
            Height = height;
        }

        /// <summary>
        /// Returns a string that represents the current object.
        /// </summary>
        /// <returns>A string that represents the current object.</returns>
        public override string ToString()
        {
            string str = "Width : " + Width + " - Height : " + Height;

            return str;
        }
    }
}
